I try to delete/perge objects with descendants and have the following error
How to delete object with leafs?
I see that ambiguous statement:
But does not work.
Dinio - Wed Jan 13 10:35:14 EST 2016 |
Re: Delete object with descendants This has been discussed on the forum. There should be at least one example code, that will recursively delete the objects and try to remove links on the objects first. Regards, Mathias |
Re: Delete object with descendants Mathias Mamsch - Thu Jan 14 04:04:57 EST 2016 This has been discussed on the forum. There should be at least one example code, that will recursively delete the objects and try to remove links on the objects first. Regards, Mathias yes, I saw sorry: 1. Delete out coming links 2. Delete in coming links 3. Check if is leaf is yes - delete 4. If is not leaf go to 1 |
Re: Delete object with descendants Hi I created a script but have very strange behavior not all objects are processed WHy is recursion correct? I do not have rows,tables or softdelete objects. Just some of the objects are deleted not all? Or is it good idea to pass the same Module object in recursion? I do not post the part with the link because this without in/out links deletion is still not working. To say that our root object do not have any in/out links.
And we call the function:
|
Re: Delete object with descendants Where can be the problem is there other function like flushDeletions() ? Which I do not use properlly? |